const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV === 'production' ? '/dist/':'/',
  transpileDependencies: true,
  devServer: {
    open:true,//自动打开
    host:'localhost',
    port: 9000, // 你想要的端口号，例如 8081
    proxy:{
      '/api':{
        target:'http://localhost:8080',
        changeOrigin:true,//允许跨域
        pathRewrite:{
          '^/api':''
        }
      }
    }
  }
})
